package com.run.go.gearbox.core.transmission;

import com.run.go.gearbox.core.gearbox.Lifecycle;

/**
 * 消息传输接口， 专门干和服务端的交互的活
 */
public interface Transmission extends Lifecycle,AutoCloseable {

    /**
     * 发送请求
     */
    void send(ExecuteEntity executeEntity,ResultCallBack resultCallBack);

    /**
     * 通道启用状态
     * @return
     */
    Boolean transmissionStarted();


    default void close(){
        stop();
    }

}
